package com.gongj.shej.策略模式;

/**
 * @program: shej
 * @description:
 * @author: gongj
 * @Description: TODO
 * @create: 2020-07-23 19:41
 **/

import com.gongj.shej.demo.StrategyFactory;

/**
 * 策略对象
 */
public interface Strategy{
    void get(int money);

    public static void main(String[] args) {
//        Context context = new Context(new Strategy30());
//        context.executeDraw(30);
//        Context context2 = new Context(new Strategy20());
//        context2.executeDraw(30);
        Strategy creator = StrategyFactory.getInstance().creator(30);
        creator.get(0);
    }
}